package com.yunhai.recipe.controller;

import com.yunhai.common.dto.Ret;
import com.yunhai.model.entity.fms.FmsCodeDictEntity;
import com.yunhai.recipe.service.FmsCodeDictService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/codeDict")
public class FmsCodeDictController {

    @Resource
    private FmsCodeDictService fmsCodeDictService;

    @GetMapping("/getCode")
    public Ret getCanUseCode(Integer type ) throws Exception {
        return Ret.ok(fmsCodeDictService.getCanUseCode(type));
    }

}
